package com.wars2donline.client.graphics;

import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.jogl.JoglApplication;
import com.wars2donline.client.data.HeroData;
import com.wars2donline.client.util.Global;
import com.wars2donline.client.xml.HeroDataXmlParser;

public class Wars2DDesktop implements ApplicationListener {
	
	public static final String APP_NAME = "Wars 2d";
	
	GameStage mStage = null;
	
	public static void main(String[] args) {
		new JoglApplication(new Wars2DDesktop(), APP_NAME, Global.SCREEN_WIDTH, Global.SCREEN_HEIGHT, false);
	}

	@Override
	public void create() {
		mStage = new GameStage(640, 480, false);
	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void render() {
		mStage.act(Gdx.graphics.getDeltaTime());
		mStage.draw();
	}

	@Override
	public void resize(int arg0, int arg1) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub
		
	}
	
}
